Crate kitsune_p2p_fetch
source ·Expand description
Kitsune P2p Fetch Queue Logic
Structs§
- Usage agnostic context data.
- A FetchPool tracks a set of
FetchKey
s (op hashes or regions) to be fetched, each of which can have multiple sources associated with it. - Info about the fetch queue
- An item in the queue, corresponding to a single op or region to fetch
- A fetch “unit” that can be de-duplicated.
- Read-only access to the queue
- Drop this when response sending is complete.
- Manage responding to requests for data.
- Roughly track an approximate integer value.
- Some data which has a RoughInt assigned for its size
- The actual inner state of the FetchPool, from which items can be obtained
- A mutable iterator over the FetchPool State
Enums§
- Determine what should be fetched.
- A source to fetch from: either a node, or an agent on a node
Traits§
- Host-defined details about how the fetch queue should function
- Customization by code making use of the FetchResponseQueue.
Type Aliases§
- Alias
- Kitsune Fetch Result
- An op hash combined with an approximate size of the op